package com.yiyangwang.health.impl;

import com.yiyaowang.health.request.SubjectRequest;
import com.yiyaowang.health.respone.HealthRespone;
import com.yiyaowang.health.service.SubjectService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
@DubboService
@Slf4j
public class SubjectServiceImpl implements SubjectService {


    @Override
    public HealthRespone add(SubjectRequest subjectRequest) {
        log.info("写入科目数据");
        HealthRespone healthRespone=new HealthRespone();
        int i=1;
        if(i==0){
            healthRespone.setStatue(true);
            healthRespone.setMessage("添加成功");
        }else {
            healthRespone.setStatue(false);
            healthRespone.setMessage("添加失败");
            healthRespone.setErrorCode("s500");
        }
        return healthRespone;
    }
}
